include ../../makefile_public
include ../makefile_public


INC	= -I $(CHENLIB_INC_DIR)
LDFLAGS += -lchenlib -lpthread

.PHONY:
all: MAKE_CHENLIB chenlibtest

MAKE_CHENLIB:
	cd $(CHENLIB_DIR); make

chenlibtest:$(CPPOBJS)
	$(CXX) $< $(LDFLAGS) -o $@

%.o: %.cpp
	$(CXX) $(CFLAGS) $(INC) -c $< -o $@
	

clean:
	cd $(CHENLIB_DIR); make clean
	-rm -f *.o chenlibtest